#!/usr/bin/env bash

. scripts/update_ver.sh

gulp app
ionic prepare
#ionic state reset
#echo 恢复插件成功
#echo 开始压缩文件,上传至oss
#./scripts/upload.py oss-cn-hangzhou.aliyuncs.com 02yUhyzfxsxzLCKA 6Cw3uKQKKRedocMtfZVfCxHoeZh2h6 yueguanjia-bucket www www_dist.zip app/customer/dist/www.zip
#echo 上传结束
ionic build --release android
cp platforms/android/build/outputs/apk/android-release-unsigned.apk ygj-customer-$VERSION.apk
echo 移动目标文件完成
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore jielin.key ygj-customer-$VERSION.apk alias_name
